package com.guiguli.test;

public class String6 {
    public static void main(String[] args) {
        String str = "abc";
        String str2 = str;
        System.out.println(str == str2);    //true

        String str3 ="ab"+"c";
        System.out.println(str == str3);    //true

        String str4 = new String("abc");
        System.out.println(str4 == str);    //false

    }
}
